import request from "@/utils/request";

/**
 * 订单待出库商品列表
 */
export const orderWaitDeliveryPage = props => {
  return request({
    url: "/mall/tenant/merchant/orderProductDelivery/orderWaitDeliveryPage",
    method: "post",
    data: props
  });
};
/**
 * 合同待入库商品列表
 */
export const waitInboundProductPage = props => {
  return request({
    url: "/mall/tenant/merchant/orderProductDelivery/waitInboundProductPage",
    method: "post",
    data: props
  });
};
/**
 * 暂存选中的商品
 */
export const saveTempDeliveryProduct = props => {
  return request({
    url: "/mall/tenant/merchant/orderProductDelivery/saveTempDeliveryProduct",
    method: "post",
    data: props
  });
};
/**
 * 获取暂存的选中商品
 */
export const getTempDeliveryProductList = props => {
  return request({
    url: "/mall/tenant/merchant/orderProductDelivery/getTempDeliveryProductList",
    method: "get",
    params: props
  });
};
/**
 * 创建订单出库单
 */
export const createDeliveryOrder = props => {
  return request({
    url: "/mall/tenant/merchant/orderProductDelivery/createDeliveryOrder",
    method: "post",
    data: props
  });
};
